const pool=require('../db/db');
const Sequelize=require('sequelize');
const roomusers= pool.define('roomuser', {
        name: {
            type: Sequelize.STRING,
            allowNull: false,
        },
        roomname: {
            type: Sequelize.STRING,
            allowNull: false,
        },
        online: {
            type: Sequelize.INTEGER,
            allowNull: false,
        },
        onlinetime: {
            type: Sequelize.DATE,
            allowNull: true,
        }
    }

)
module.exports=roomusers;
